<nz-spin [nzSpinning]="isSpinning">
  <form nz-form [formGroup]="validateForm" (ngSubmit)="submitForm($event)">
    <div nz-form-item nz-row>
      <div nz-form-label nz-col [nzSpan]="6">
        <label nz-form-item-required for="prName">抽查主题</label>
      </div>
      <div nz-form-control nz-col [nzSpan]="8" nzHasFeedback [nzValidateStatus]="getFormControl('prName')">
        <nz-input [nzSize]="'large'" formControlName="prName" [nzPlaceHolder]="'抽查主题'" [nzType]="'prName'" [nzId]="'prName'"
                  [(ngModel)]="publicRandomBean.prName"></nz-input>
        <div nz-form-explain *ngIf="getFormControl('prName').dirty&&getFormControl('prName').hasError('required')">抽查主题不能为空!</div>
      </div>
    </div>
   
    <div nz-form-item nz-row>
      <div nz-form-label nz-col [nzSpan]="6">
        <label nz-form-item-required for="prPartyName">创建单位</label>
      </div>
      <div nz-form-control nz-col [nzSpan]="8" nzHasFeedback [nzValidateStatus]="getFormControl('prPartyName')">
        <nz-input readonly="true" [nzSize]="'large'" [nzDisabled]="true" formControlName="prPartyName" [nzPlaceHolder]="'请输入制定单位'" [nzType]="'prPartyName'" [nzId]="'prPartyName'"
                  [(ngModel)]="publicRandomBean.prPartyName"></nz-input>
        <div nz-form-explain *ngIf="getFormControl('prPartyName').dirty&&getFormControl('prPartyName').hasError('required')">创建单位不能为空!</div>
      </div>
    </div>

    <div nz-form-item nz-row>
      <div nz-form-label nz-col [nzSpan]="6">
        <label nz-form-item-required for="time">创建时间</label>
      </div>
      <div nz-form-control nz-col [nzSpan]="10" nzHasFeedback>
         <nz-datepicker style="min-width:200px" [nzDisabled]="true" formControlName="createdTime" [nzSize]="'large'" [nzFormat]="'YYYY-MM-DD HH:mm:ss'" [(ngModel)]="publicRandomBean.createdTime"
          name="createdTime" [nzPlaceHolder]="'创建时间'"></nz-datepicker>
      </div>
    </div>
    
    <div nz-form-item nz-row style="margin-bottom:8px;">
      <div nz-form-control nz-col [nzSpan]="14" [nzOffset]="10">
        <button nz-button [nzSize]="'large'" [nzType]="'primary'">添加</button>
      </div>
    </div>
  </form>
</nz-spin>
